{__NOLAYOUT__}<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>大拇哥资源共享平台</title>
    <!--视口 不缩放 -->
    <meta name="viewport" content="user-scalable=no,width=device-width, initial-scale=1.0,  minimum-scale=1.0, maximum-scale=1.0">
    <meta name="flexible" content="initial-dpr=1" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <!-- 网页作者 -->
    <meta name="author" content="hg" />
    <!-- 添加到主屏后的标题（iOS 6 新增） -->
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <!-- 是否启用 WebApp 全屏模式，删除苹果默认的工具栏和菜单栏 -->
    <meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL">
    <!-- 设置苹果工具栏颜色 -->
    <meta name="format-detection" content="telphone=no, email=no" />
    <!-- 忽略页面中的数字识别为电话，忽略email识别 -->
    <!-- 启用360浏览器的极速模式(webkit) -->
    <meta name="renderer" content="webkit">
    <!-- 不让百度转码 -->
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!-- windows phone 点击无高光 -->
    <meta name="msapplication-tap-highlight" content="no">
    <meta name="msapplication-TileColor" content="#000" />
    <!--<link href="logo.ico" rel="shortcut icon" type="image/x-icon">-->
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <link rel="shortcut icon" href="favicon.ico">
    
    
    <!-- ZUI1.7.0 -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/zui/1.7.0/css/zui.min.css" rel="stylesheet">
    
    <!-- Swiper -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.3.0/css/swiper.min.css" rel="stylesheet">
    
    <link href="__PUBLIC__/dist/css/mobile.css" rel="stylesheet">

</head>
<body>
<div id="page">
    <!-- Header -->
    <include file="Index:nav" />
    <!-- Header End -->

    <style>body{background-color:#f5f5f5;}</style>
    <div class="player">
        <section class="player-video clearfix">
             <if condition="$type eq 'rwid' || $type eq 'wkid'" >
                    <iframe id="videosrc" data-src='{$file}' src="http://hgedu.fjhgkj.com{$file}"></iframe>
                    <else />
                    <iframe id="videosrc"  data-src='{$file}'  src="index.php?m=Index&a=pdf&file={$file}&title={$title|urlencode=###|urlencode=###}"></iframe>
                    </if>

        </section>
    
        <section class="player-main swiper-container">
            <ul class="player-nav clearfix">
                <li class="active"><a>简介</a></li>
                <li><a>评论</a></li>
            </ul>
            <div class="swiper-wrapper pt-20">
                <div class="swiper-slide container">
                    <h2>{$gangweiinfo.description}</h2>
                    <ul class="player-info row text-center">
                        <li class="col-xs-6">
                            <p>{$gangweiinfo.readpoint}</p>
                            <span><i class="icon-fwl"></i> 浏览数</span>
                        </li>
                        <li class="col-xs-6">
                            <p>{$totalsc}</p>
                            <span><i class="icon-star"></i> 收藏数</span>
                        </li>
                    </ul>

                    <ul class="player-list">
                        
                        <if condition="$type eq 'rwid'">
                        <volist name='xiangguan' id='vo' key='k'>
                        <volist name="vo['rwsp']['val']" id="voo">
                        <li class="clearfix">
                            <a  href="index.php?g=Mobile&m=Index&a=detailsplay&{$type}={$vo.id.val}&file={$voo.file}&title={$voo.name|urlencode=###|urlencode=###}" title="{$voo.name}"><img src="__PUBLIC__/dist/image/img.jpg" data-src="http://hgedu.fjhgkj.com{$vo.rwspylt.val}"/>
                                <p>{$voo.name}</p></a>
                            
                        </li>
                       </volist>
                        </volist>
                        <elseif condition="$type eq 'wkid'"  />
                        <volist name='xiangguan' id='vo' key='k'>
                         <li class="clearfix">
                             <a href="index.php?g=Mobile&m=Index&a=detailsplay&{$type}={$vo.id.val}&file={$vo['wksp']['val']}&title={$vo['title']['val']|urlencode=###|urlencode=###}" title="{$vo['title']['val']}"><img src="__PUBLIC__/dist/image/img.jpg"  data-src="http://hgedu.fjhgkj.com{$vo.wktp.val}"/>
                                 <p>{$vo.title.val}</p></a>
                            
                        </li>
                         </volist>
                        <elseif condition="$type eq 'kjid'"  />
                        <volist name='xiangguan' id='vo' key='k'>
                        <li class="clearfix">
                              <a href="index.php?g=Mobile&m=Index&a=detailsplay&file={$vo.wswj.val}&title={$vo.title.val|urlencode=###|urlencode=###}&kjid={$vo.id.val}" target="_blank" title="{$vo.title.val}"><img src="__PUBLIC__/dist/image/img.jpg"  data-src="http://hgedu.fjhgkj.com{$vo.dzkjylt.val}"/>
                                 <p>{$voo.name}</p></a>
                            
                        </li>
                        </volist>
                        <elseif condition="$type eq 'dzjc'"  />
                        <volist name='xiangguan' id='vo' key='k'>
                        <li class="clearfix">
                              <a href="index.php?g=Mobile&m=Index&a=detailsplay&file={$vo.rwwj.val}&title={$vo.title.val|urlencode=###|urlencode=###}&kjid={$vo.id.val}" target="_blank" title="{$vo.title.val}"><img src="__PUBLIC__/dist/image/img.jpg"  data-src="http://hgedu.fjhgkj.com{$vo.rwspylt.val}"/>
                                 <p>{$voo.name}</p></a>
                            
                        </li>
                        </volist>
                        </if>
                    </ul>
                </div>
                <div class="swiper-slide container">
                    <ul class="player-pl">
                         <volist name="list" id="vo">
                        <li>
                            <img src="{$vo['account']['avatar']}">
                            <p><span class="name">{$realname}</span><span class="time">{$vo.createtime}</span></p>
                            <div class="text">{$vo.content}</div>
                        </li>
                         </volist>
                    </ul>
                </div>
            </div>
            <div class="player-input none">
                <input type="text" id="pingluncontent" ><a class='sendpinglun'></a>
            </div>
        </section>
    </div>

</div>


<script src="//cdnjs.cloudflare.com/ajax/libs/zui/1.7.0/lib/jquery/jquery.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.4.2/js/swiper.min.js"></script>

<script>

$(function(){
    var swiper = new Swiper('.swiper-container', {
        prevButton: $(".player-nav li").eq(0),
        nextButton: $(".player-nav li").eq(1),
        onSlideChangeStart: function(){
            $(".player-nav li").removeClass("active");
            $(".player-nav li").eq(swiper.activeIndex).addClass("active");

            if(swiper.activeIndex){
                $(".player-input").removeClass("none");
            }else{
                $(".player-input").addClass("none");
            }

        },
    })

    $(".icon-star").parent().on("click",function(){
        $(this).find("i").toggleClass("on");
    })
    
            $('.sendpinglun').on('click', function () {
            var content = $("#pingluncontent").val();
            if (content == '') {
                alert('请先输入内容');
                return false;
            }



             var src = $("#videosrc").attr("data-src");
            var typeid = '{$typeid}';
            var type = '{$type}';
            $.ajax({
                type: "POST",
                url: "index.php?g=Home&m=Index&a=savecontent",
                data: "content=" + content + "&src=" + src + "&typeid=" + typeid + "&type=" + type,
                dataType: "json",
                success: function (resp) {
                     if (resp.code == '0002') {
                        alert(resp.msg);
                        window.location.href = "index.php?g=User&m=Login&a=index";
                    } else if(resp.code == '0001') {
                        alert(resp.msg);
                    }else{
                        var html = '<li>';
                        html += '<img src="'+resp.ping.avatar+'">';
                        html += '<p><span class="name">{$realname}</span><span class="time">'+resp.ping.createtime+'</span></p>';
                        html += '<div class="text">' + resp.ping.content + '</div>';
                        html += '</li>';
                        $(".player-pl").append(html);
                        $("#pingluncontent").val("") ;
                    }
                }
            });
        })
        
})

</script>
</body>
</html>